package al.xc.task;

public final class DelayEvent extends DelayInfo {

    private final String key;
    private final String event;
    private final String data;

    DelayEvent(String key, String event, String data, Long millisecond) {
        super(millisecond);
        this.key = key;
        this.event = event;
        this.data = data;
    }

    public String getKey() {return key;}
    public String getEvent(){ return event; }
    public String getData() { return data; }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        DelayEvent event = (DelayEvent)obj;
        return this.key.equals(event.key) && this.event.equals(event.event) && this.data.equals(event.data);
    }
}
